package com.soaring.ray;

import com.soaring.ray.collection.ListToJson;
import com.soaring.ray.collection.impl.ListToJsonImpl;
import com.soaring.ray.model.Person;

import java.util.ArrayList;
import java.util.List;

public class App {
      public static void main(String args[]){
          List<Person> persons=new ArrayList<Person>() ;
          Person  person1=new Person("lili","beijing",101);
          Person  person2=new Person("lili","beijing",102);
          Person  person3=new Person("lili","beijing",103);
          persons.add(person1) ;
          persons.add(person2) ;
          persons.add(person3) ;

          ListToJson listToJson=new ListToJsonImpl() ;
          System.out.println(listToJson.listTojson(persons));



      }

}
